import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

Vue.config.productionTip = false

import 'bootstrap/dist/css/bootstrap.css'
import 'bootstrap/dist/js/bootstrap.js'


Vue.filter('filterNum', function (data, format) {
    console.log(data)
    console.log(format);

    return data.toString().replace(3, 'm')

})
Vue.directive('color', {
    bind(el, binding) {
        // console.log(el)
        // console.log(binding)
        console.log(binding.value)
        el.style.color=binding.value
    },
    inserted(el) {
        console.log(el)
        el.focus()
    },
    update(el) {
        console.log(el)
        el.focus()
    },
})
new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')
